package com.yue.service;

import com.yue.mapper.UserMapper;
import com.yue.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public int saveUser(String username, String password) {
        int i = userMapper.saveUser(username, password);
        return i;
    }

    @Override
    public User checkUser(String username, String password) {
        User user = userMapper.checkUser(username, password);
        return user;
    }

    @Override
    public User checkUserAll(String username, String password) {
        User user = userMapper.checkUserAll(username, password);
        return user;
    }

}
